﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Finance/FinanceMaster.master" AutoEventWireup="true"
	CodeBehind="AccountAssignment.aspx.cs" Inherits="WebApplication.Finance.AccountAssignment"
	Theme="BaselineTheme" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<table>
		<tr>
			<td>
				<div class="BorderDiv">
					<table>
						<tr><td><h2>Accounts</h2></td></tr>
						<tr><td>Staff: <asp:DropDownList ID="cboAccountFilter" runat="server" AutoPostBack="True" 
								onselectedindexchanged="cboAccountFilter_SelectedIndexChanged">
							</asp:DropDownList>
						</td></tr>
						<tr><td>
							<asp:GridView ID="gridAvailableAccounts" runat="server" AutoGenerateColumns="False">
								<Columns>
									<asp:BoundField DataField="AccountId" Visible="False" />
									<asp:TemplateField>
										<ItemTemplate>
											<asp:CheckBox ID="checkBoxCol" runat="server" />
										</ItemTemplate>
									</asp:TemplateField>
									<asp:BoundField DataField="Debtor" HeaderText="Debtor" />
									<asp:BoundField DataField="Client" HeaderText="Client" />
									<asp:BoundField DataField="User" HeaderText="Collector" />
									<asp:BoundField DataField="InvoiceAmount" DataFormatString="{0:BC}" 
										HeaderText="Invoice" HtmlEncode="False" />
									<asp:BoundField DataField="DayAgeAsText" HeaderText="Age" />
								</Columns>
								<HeaderStyle Font-Size="9pt" />
								<RowStyle Font-Size="9pt" />
							</asp:GridView>
						</td></tr>
					<tr><td><asp:Button ID="butAdd" runat="server" Text="Add->" /></td></tr>
					</table>					
				</div>
			</td>
			<td style="width: 100px;">
				<asp:Button ID="butRemove" runat="server" Text="<- Remove" />
			</td>
			<td>
				<div class="BorderDiv">
					<table>
						<tr>
							<td><h2>Managers &amp; Collectors</h2></td>
						</tr>
						<tr>
							<td>Manager: <asp:DropDownList ID="cboTargetManager" runat="server" AutoPostBack="True" onselectedindexchanged="cboTargetManager_SelectedIndexChanged"></asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>Collector: <asp:DropDownList ID="cboTargetCollector" runat="server" AutoPostBack="True" onselectedindexchanged="cboTargetCollector_SelectedIndexChanged"></asp:DropDownList>
							</td>
						</tr>
						</tr>
						<tr>
							<td>
								<asp:GridView ID="gridWorkload" runat="server" AutoGenerateColumns="false">
								<Columns>
									<asp:BoundField DataField="AccountId" Visible="False" />
									<asp:TemplateField>
										<ItemTemplate>
											<asp:CheckBox ID="checkBoxCol" runat="server" />
										</ItemTemplate>
									</asp:TemplateField>
									<asp:BoundField DataField="Debtor" HeaderText="Debtor" />
									<asp:BoundField DataField="Client" HeaderText="Client" />
									<asp:BoundField DataField="User" HeaderText="Collector" />
									<asp:BoundField DataField="InvoiceAmount" DataFormatString="{0:BC}" 
										HeaderText="Invoice" HtmlEncode="False" />
									<asp:BoundField DataField="DayAgeAsText" HeaderText="Age" />
								</Columns>
								<HeaderStyle Font-Size="9pt" />
								<RowStyle Font-Size="9pt" />
								</asp:GridView>
							</td>
						</tr>
						<tr>
							<td>
								<asp:Button ID="Button1" runat="server" Text="Unassign (Mgr)" />&nbsp;
								<asp:Button ID="Button2" runat="server" Text="Unassign (Coll)" />
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
	</table>
	<br />
	<p>
		todo</p>
	Admin assign accounts to acc managers acc managers assign accounts to user Warn
	assigner if the users workload for the day is too big Bulk transfer<br />
	Will manager un-assign from collector and/or manager,
	or assign to manager and then manager assigns to colllector?
</asp:Content>
